<?php

namespace DesignModel\database;
class mysqli implements Db
{
    protected $conn;

    public function connect($host, $user, $password, $db_name)
    {
        $conn = mysqli_connect($host, $user, $password, $db_name);
        $this->conn = $conn;
    }

    public function query($query)
    {
        $res = mysqli_query($this->conn,$query);
        return $res;
    }

    public function close()
    {
        mysqli_close($this->conn);
    }
}